<?php

error_reporting(E_ALL | E_STRICT);

require_once("../data_objects.class.php");
require_once("../qruiz_data_objects.class.php");
require_once("../dml.class.php");
require_once("../bll.class.php");

function generateQuestionURL(Question $question) {
	return sprintf("http://%s%s/?q=%s&h=%s", $_SERVER["SERVER_NAME"], dirname(dirname($_SERVER["PHP_SELF"])), $question->id, BLL::getInstance()->generateQuestionHash($question->id));
}

